<%@ page language="java" import="com.alibaba.fastjson.JSONObject" pageEncoding="UTF-8" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.general.Util" %>
<%--明细1和明细2，资金明细项目根据预算编码辅助字段带出，预算编码辅助字段如果为空不需要带出，--%>
<%
    JSONObject dataJson = new JSONObject();
    String ysbm = Util.null2String(request.getParameter("ysbm"));
    String code = "SUCCESS";
    String message = "";
    JSONObject datas = new JSONObject();
    try {
        RecordSet rs = new RecordSet();
        rs.executeQuery("select id,yskm from uf_zjxmjysejkmdzb where ysbm=?", ysbm);
        if (rs.next()) {
            datas.put("id", Util.null2String(rs.getString("id")));
            datas.put("yskm", Util.null2String(rs.getString("yskm")));
        }
    } catch (Exception e) {
        code = "SYSTEM_INNER_ERROR";
        message = "程序内部异常";
        e.printStackTrace();
    }
    dataJson.put("code", code);
    dataJson.put("datas", datas);
    dataJson.put("message", message);
    out.print(dataJson.toJSONString());
%>




